<div id="user-follow-cates">
    <?php
        echo $this->Session->flash();        
        //注意#maincontent中，只包含一个'.container'，否则无法前台编辑模板可能会走样。多行的使用实现使用<div class="row"></div>。
    ?>
   <p>{{lang('please select category')}} </p>
   <div>
        <input type="text" name="user_follow_cate"> <input type="button" value="{{lang('new cate')}}">
   </div>
    <hr/>
    <p>{{lang('please select category')}} </p>
    <small><i class="fa fa-info-circle"></i> {{lang('it will saved automaticly when checked')}}</small>
    <div  class="row">
    {{loop $catelist $id $name}}
        <div class="col-xs-4"><label><input name="data['UserFollow']['cate_id'][]" value="{{$id}}" type="checkbox">&nbsp;{{$name}}</label></div>
    {{/loop}}
    </div>
    <hr/>
   <div>
        <input type="text" name="user_follow_cate"> <input type="button" value="{{lang('new cate')}}">
   </div>
</div>